profiler: Always mark events with the kind
authorAlexander Larsson <alexl@redhat.com>
Tue, 11 Feb 2020 18:51:49 +0000 (19:51 +0100)
committerAlexander Larsson <alexl@redhat.com>
Tue, 11 Feb 2020 18:51:49 +0000 (19:51 +0100)
gdk/gdksurface.c

index 10046c4ca1cd9e272c25beee9d43c8040e72ff97..1f554676a5accf0424ca775f4f71ff99f95e3b8f 100644 (file)
@@ -4110,7 +4110,7 @@ add_event_mark (GdkEvent *event,
     }
   else
     {
-      gdk_profiler_add_mark (time * 1000L, duration * 1000L, "event", message);
+      gdk_profiler_add_mark (time * 1000L, duration * 1000L, "event", message ? message : kind);
     }
 
   g_free (message);